home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 1 / PC Actual CD 01.iso / share / dos / demos / legend / install.bat < prev    next >
Encoding:
DOS Batch File  |  1994-04-09  |  4.1 KB  |  124 lines

  1. @echo off
  2. rem Install procedure by WALKEN...
  3. echo  
  4. echo ┌────────────────────────────╖
  5. echo │ IMPACT Studios presents... ║
  6. echo │        LEGEND 1.0          ║
  7. echo ╘════════════════════════════╝
  8. echo  
  9. echo    IMPACT Studios World HQ :
  10. echo          GENESIS BBS
  11. echo       ++32-(0)2-2453498
  12. echo 5 lines ringdown USRDS / 16.8K
  13. echo  
  14. echo           3 Sysops :
  15. echo           MadFlight
  16. echo    MacGarret / Renaissance
  17. echo  Darkness / Imphobia Cascada
  18. echo  
  19. echo Installation procedure is running...
  20. echo  
  21. for %%a in (README.TXT INSTALL.BAT FILE_ID.DIZ FDREAD.EXE FDF.EXE _LEGEND.EXE) do if not exist %%a goto directory
  22. if !%1!==!! goto syntax
  23. if not !%fdread%!==!! goto no_fdread
  24. echo Installing FDREAD...
  25. FDREAD.EXE >nul:
  26. set fdread=yes
  27. :no_fdread
  28. if !%2!==!! goto floppy
  29. if exist %1%2\*.* goto no_md
  30. echo Creating directory...
  31. md %1%2 >nul:
  32. :no_md
  33. echo Copying files...
  34. copy FILE_ID.DIZ %1%2 >nul:
  35. copy _LEGEND.EXE %1%2 >nul:
  36. %1
  37. cd %2
  38. echo Unpacking files...
  39. echo y|_LEGEND.EXE >nul:
  40. if errorlevel 1 goto error
  41. echo  
  42. echo All files unpacked OK !
  43. echo (but please verify that LEGEND.EXE is 1672851 bytes long...)
  44. echo  
  45. echo Now you can watch the demo by typing LEGEND. Enjoy the show !
  46. echo If you want more information about the demo please use LEG_TEXT.EXE
  47. echo  
  48. echo If you want to make some room on your hard disk please always keep safe the
  49. echo following files :
  50. echo  
  51. echo      - README.TXT
  52. echo      - INSTALL.BAT
  53. echo      - FILE_ID.DIZ
  54. echo      - FDREAD.EXE
  55. echo      - FDF.EXE
  56. echo      - _LEGEND.EXE
  57. goto ok
  58. :error
  59. echo  
  60. echo INSTALL ERROR ! THE UNPACKING SOFTWARE SEEMS TO HAVE PROBLEMS !
  61. echo  
  62. echo Please verify that you have 4Mb free on your hard disk before installation.
  63. echo      If not, this explains the problem...
  64. echo  
  65. echo In any other case, it is likely that your version of the LEGEND software is
  66. echo      corrupted. You should try to get it again...
  67. echo  
  68. echo For example you can get a good version on our World HQ : GENESIS 
  69. goto nok
  70. :floppy
  71. echo Formating floppy disk...
  72. echo a|FDF.EXE %1 f164 c2 d8 k vlegend x2 y3 >nul:
  73. if not errorlevel 1 goto install
  74. echo  
  75. echo INSTALL ERROR ! THE TARGET DRIVE DOES NOT CONTAIN A GOOD 1.44 Mb DISK !
  76. echo  
  77. echo Please verify that the target is a 1.44 Mb drive, then insert a good 1.44 Mb
  78. echo disk in the target drive and try again...
  79. echo  
  80. echo (You can also check if your disk is write-protected...)
  81. echo  
  82. echo The last trick : sometimes the DOS is unhappy and it will not allow the
  83. echo install procedure to format your disk. The formating utility will abort just
  84. echo after displaying the 'Formating floppy disk' message. If this occurs, you
  85. echo should try using the dos-format command (format %1 /u) and abort the format
  86. echo after 1 or 2 tracks, then start the INSTALL.BAT procedure again. Usualy the
  87. echo DOS will be happy and it will work. Don't ask me why....
  88. goto nok
  89. :install
  90. echo Copying files...
  91. for %%a in (README.TXT INSTALL.BAT FILE_ID.DIZ FDREAD.EXE FDF.EXE _LEGEND.EXE) do copy %%a %1 >nul:
  92. :ok
  93. echo  
  94. echo LEGEND INSTALLATION TERMINATED !
  95. goto fin
  96. :directory
  97. echo INSTALL ERROR ! THE FOLOWING FILES MUST BE IN THE CURRENT DIRECTORY :
  98. echo  
  99. echo      - README.TXT
  100. echo      - INSTALL.BAT
  101. echo      - FILE_ID.DIZ
  102. echo      - FDREAD.EXE
  103. echo      - FDF.EXE
  104. echo      - _LEGEND.EXE
  105. echo  
  106. echo Please move to the good directory or get a good version of this installation
  107. echo procedure, then run INSTALL.BAT again...
  108. goto nok
  109. :syntax
  110. echo INSTALL ERROR ! THE SYNTAX FOR INSTALL.BAT IS :
  111. echo  
  112. echo      - If you want to install LEGEND to a 1.44 Mb floppy drive :
  113. echo           INSTALL drive:                (for example install a:)
  114. echo           (but the demo cannot be run from a floppy disk !)
  115. echo  
  116. echo      - If you want to install LEGEND to your hard disk (you'll need 4Mb free) :
  117. echo           INSTALL drive: directory:     (for example install c: \impact\legend)
  118. echo           (take care of the blank between c: and \impact\legend !)
  119. :nok
  120. echo  
  121. echo You should also read README.TXT for information about the install procedure
  122. :fin
  123. echo  
  124.